Skip to content

feat: add multi speed fast forward (1x-16x) to game menu#1115

Open
mdevolde wants to merge 1 commit intoSwordfish90:masterfrom
mdevolde:feature/speed_choices
Open

feat: add multi speed fast forward (1x-16x) to game menu#1115
mdevolde wants to merge 1 commit intoSwordfish90:masterfrom
mdevolde:feature/speed_choices

Conversation

@mdevolde
Copy link
Copy Markdown

@mdevolde mdevolde commented Apr 25, 2026

feat: add multi speed fast forward (1x-16x) to game menu

Motivations

The purpose of this PR is to allow players to have more options when adjusting the game speed (which is currently limited to x1 or x2).

Changes

Interface changes

  • Mobile: "Fast-Forward" becomes a list (1x, 2x, 4x, 8x, 16x)
  • TV: "Fast-Forward" is now listed in ListPreference with the same speeds as above.

On both platforms, displays the note “Some speeds may be limited depending on the core.”

Code changes

  • Added an EXTRA_FRAME_SPEED extra and a RESULT_SET_FRAME_SPEED result.
  • The menu returns the selected speed and BaseGameActivity applies it to retroGameView.frameSpeed.
  • The "Toggle fast forward" shortcut cycles through 1->2->4->8->16->1.
  • Compatibility: fallback retained via the old bool EXTRA_FAST_FORWARD / RESULT_ENABLE_FAST_FORWARD.

Testing

  • Tested on mobile: speed selection and menu persistence. On some cores, there is a limit of supported speed (for exemple, x4 and x8 will give the same result).
  • Not yet tested on TV (will be performed soon)

Related issues

Closes #650
Closes #837

@mgiessing
Copy link
Copy Markdown

Thanks @mdevolde looks like a nice PR 😊

Two questions:

  • Does this PR also enable binding fast-forward to a button/key which is especially useful when using a controller?
  • Since I do not have access to a Laptop right now, have you compiled the APK somewhere (or would you and e.g. upload to git?)

@kovasap
Copy link
Copy Markdown

kovasap commented May 1, 2026

Based on my reading of the description, this does not add a button/key binding. I also really want that feature.

#1077 seems to add this feature though! But so far the PR has been ignored. If you end up building lemuroid with that PR could you share the APK? Or maybe I will try building it myself at some point...

@mdevolde
Copy link
Copy Markdown
Author

mdevolde commented May 1, 2026

@mgiessing @kovasap I didn't add a shortcut for "fast-forward" because it is yet implemented, but I didn't notice that, because this shortcut has no default value, it is impossible to configure it. I will look at this soon.

- add multi speed fast forward
- allow to set default unset shortcuts (including f-f)
- allow to edit the f-f cycle with shortcut
@mdevolde mdevolde force-pushed the feature/speed_choices branch from 93b3875 to 7e8072a Compare May 2, 2026 17:59
@mdevolde
Copy link
Copy Markdown
Author

mdevolde commented May 2, 2026

So, I allowed users to set a value for shortcuts that has no default value, and I allowed users to edit the "fast-forward cycle" (you can configure your emulator to cycle between 1x, x8 by pressing the fast forward shortcut instead of cycling between 1x, x2, x4, x8, x16).
Editing the fast-forward cycle helps prevent crashes in games that don't support the highest speeds.

I retested the entire workflow on phone, with and without controller.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

x3/x4/x8/x16 Fast Forward Speed and Turbo Button Add a button to speed up emulation

3 participants